import { createRouter, createWebHistory } from 'vue-router';
import container from '@/view/container.vue';

const constantRoutes = [
  {
    path: '/:wgcode/:datestring',
    component: container,
    name: 'Kanban',
    meta: { title: '看板' },
  },
  {
    path: '/:wgcode',
    component: container,
    name: 'KanbanWG',
    meta: { title: '看板' },
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes: constantRoutes,
});

export default router;
